<div id="content">
	<div id="content_header" class="size_20" style=" border-bottom-width:medium; border-bottom-style:solid; border-bottom-color:#777777">
	<img src="images/icn_mytaskTitle.gif" align="absmiddle" width="" height="">Laporan
	</div>
<div align="center">
 
 <br>
    <br>
<fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC;">
<legend style="font-size:1.0em; font-weight: bold;">Senarai Laporan </legend>
	
  <table width="650" border="0" align="" bgcolor="#ffffff" class="tableMainBodyFont">
    <tr>
      <td><strong>&nbsp;</strong></td>
    </tr>
    <tr>
      <td>
		<fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC;">
		<legend style="font-size:1.0em; font-weight: bold;">1. Ahli </legend>
	  <ol>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_status_ahli">Senarai Semua Keahlian</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=A">Senarai Ahli Aktif - Aturan Nama</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=B">Senarai Ahli Aktif - Aturan No Ahli</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=C">Senarai Ahli Aktif - Aturan Bangsa</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=C1">Senarai Ahli Aktif - Mengikut Jantina (LELAKI)</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=C2">Senarai Ahli Aktif - Mengikut Jawatan (PEREMPUAN)</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=D">Senarai Ahli Berhenti - Aturan Nama</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=E">Senarai Ahli Berhenti - Aturan No Ahli</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=F">Senarai Ahli Penyumbang - Aturan Nama</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=G">Senarai Ahli Penyumbang - Aturan No Ahli</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=H">Senarai Ahli Berinsurans - Aturan Nama</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli&type=H1">Senarai Ahli Berinsurans - Aturan No Ahli</a></li>
          <li><a target="_blank" style="text-decoration:none;" href="reporting.php?act=senarai_ahli_by_cawangan">Senarai Ahli Berinsurans Mengikut Cawangan</a></li>
          <li>
			<table border='0'>
			  <tr>
				<td width='40%'>Senarai Ahli Mengikut Cawangan</td>
				<td>
				<select name='cawangan' id='cawangan'>
					<option value='' selected>--Sila Pilih--</option>
					<? foreach($cawangan_arr as $k=>$cawangan):?>
						<option value="<?=$k ?>"><?=$cawangan?></option>
					<? endforeach; ?>
				</select>
					<input type='button' value='Cetak' target='_blank' onclick="goReport('senarai_ahli','I', document.getElementById('cawangan').value )"/>
				</td>
			  </tr>
			</table>
		  </li>
          <li>
			<table border='0'>
			  <tr>
					<td width='40%'>Senarai Ahli Aktif Mengikut Cawangan</td>
					<td>
						<select name='cawangan_ac' id='cawangan_ac'>
							<option value=''>--Sila Pilih--</option>
							<? foreach($cawangan_arr as $k=>$cawangan):?>
								<option value="<?=$k ?>"><?=$cawangan?></option>
							<? endforeach; ?>
						</select>
					
					<input type='button' value='Cetak' target='_blank' onclick="goReport('senarai_ahli','K', document.getElementById('cawangan_ac').value )"/>
					</td>
			  </tr>
			</table>
		  </li>
          <li>
			<table border='0'>
			  <tr>
					<td width='40%'>Senarai No Gaji Ahli Mengikut Cawangan</td>
					<td>
					<select name='cawangan_g' id='cawangan_g'>
						<option value=''>--Sila Pilih--</option>
						<? foreach($cawangan_arr as $k=>$cawangan):?>
							<option value="<?=$k ?>"><?=$cawangan?></option>
						<? endforeach; ?>
					</select>
					<input type='button' value='Cetak' target='_blank' onclick="goReport('senarai_ahli','J', document.getElementById('cawangan_g').value )"/>
					</td>
			  </tr>
			</table>
		</li>
		</ol>
		</td>
		<tr>
			<td>
			</fieldset>
			<fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC;">
			<legend style="font-size:1.0em; font-weight: bold;">2. Penyata </legend>
			<ol>
			  <li>
				<!--a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=A"-->Penyata 5E April - September<!--/a-->
				<select name='tahun_0' id='tahun_0'>
				  <option value='2010'>2010</option>
				  <option value='2011'>2011</option>
				</select>
				  <input type='button' value='Cetak' target='_blank' onclick="goReport('penyata','A', document.getElementById('tahun_0').value )"/>
			  </li>
			  <li>
				<a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=B">Penyata 5E Oktober - Mac</a>
				<select name='tahun_1' id='tahun_1'>
				  <option value='2010'>2010</option>
				  <option value='2011'>2011</option>
				</select>
				<input type='button' value='Cetak' target='_blank' onclick="goReport('penyata','C', document.getElementById('tahun_1').value )"/>
			  </li>
			  <li><a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=C">Penyata (Insurans) 5E April - September</a></li>
			  <li><a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=D">Penyata (Insurans) 5E Oktober - Mac</a></li>
			  <li><a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=E">Penyata (Sumbangan) 5E April - September</a></li>
			  <li><a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=F">Penyata (Sumbangan) 5E Oktober - Mac</a></li>
			  <li><a target='_blank' style="text-decoration:none;" href="reporting.php?act=penyata&type=G">Penyata Perlu Dibayar[By Bulan]</a></li>
		  </ol>
		  </fieldset>
		  </td>
    </tr>
  </table>
  
</fieldset>  
</div>
</div>

<script>
function goReport(act, type, val){
	if(val == '') {
		alert('Sila Pilih Cawangan...'); 
		return false;
	}
	
	str = '?act='+act+'&type='+type+'&cawangan='+val
	//window.location=str
	window.open(str)
	return true;
}
</script>